//
//  ShipListView.h
//  SpaceStorm
//
//  Created by 祥 雍 on 13-6-17.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import "cocos2d.h"
#import "ToggleSprite.h"
#import "ShipListItem.h"


@interface ShipListView : CCLayerColor
{
    CCLayerColor* _itemBG;
    CCArray *  _items;
    ToggleSprite* _topCover;
    ToggleSprite* _buttomCover;
    ShipListItem* _selectItem;  //选中的项
}

+(id) listWithVoArray:(CCArray*)voArray
                color:(ccColor4B)c
                width:(GLfloat)w  
               height:(GLfloat) h;

-(id) initWithVoArray:(CCArray*)voArray
                color:(ccColor4B)c
                width:(GLfloat)w  
               height:(GLfloat) h;

- (BOOL)selectSpriteForTouch:(CGPoint)touchLocation;

@property (readwrite, retain) CCArray * items;

@end
